//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_handleDamageGear.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);
private ["_player","_enemy","_damage","_part"];
_player = _this select 0;
_enemy  = _this select 3;
_damage = _this select 2;
_part   = _this select 1;
if (Alive _player && format ["%1", _player getVariable "BTC_need_revive"] == "0" && BTCR_NextGearSave < time && (BTC_gear_on_death == 0)) then {
	BTCR_NextGearSave = time + 3;
	BTC_gear = [_player] call BTCR_fnc_getGear;
	TRACE_1("BTC_Gear",BTC_gear);
};
// It's not needed to return damage anymore
if (format ["%1", _player getVariable "BTC_need_revive"] == "1") then {0} else {};
